package com.suhui.task.pojo.progress;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.PositiveOrZero;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class P_all {
    private String id;
    @Pattern(regexp = "^(true|false)$", message = "输入内容必须为 true 或 false")
    private String bool_work;
    @Pattern(regexp = "^(true|false)$", message = "输入内容必须为 true 或 false")
    private String bool_overwork;
    @Pattern(regexp = "^(较好|一般|较差)$", message = "输入内容必须为 较好 或 一般 或 较差")
    private String grasp;
    private String progress_content;
    @Pattern(regexp = "^\\d{4}年-\\d{1,2}周$", message = "输入内容格式不正确")
    private String year_week;
    @Pattern(regexp = "^[0-7]$",message = "每周请假次数0-7")
    private int ask_for_leave;

    private String name;
    private String group;
}
